#include<iostream>
#include<libnet.h>

using namespace std;

class PacketWriter {

  public:
	PacketWriter(string* device, int inject_type);
	~PacketWriter();
  protected:
	libnet_t* lnet;
	char* err;
	char* device;
	libnet_ether_addr* hwaddr;
	void write();
};
